package com.lzy.pattern.strategy;

/**
 * @ClassName: SalesMan
 * @Description: 环境（Context）类：持有一个策略类的引用，最终给客户端调用。
 * @Author: LiuZy
 * @Date: 2022/4/27 22:10
 * @Version: 1.0
 */
public class SalesMan {
    private Strategy strategy;

    public SalesMan(Strategy strategy) {
        this.strategy = strategy;
    }

    public void SalesShow() {
        strategy.show();
    }
}